/*package com.thinqq.web.server;

import java.util.ArrayList;
import java.util.List;

import javax.jdo.PersistenceManager;

import com.google.appengine.api.datastore.KeyFactory;
import com.google.appengine.api.datastore.Text;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.thinqq.web.client.ContentService;
import com.thinqq.web.shared.jdo.ContentPart;
import com.thinqq.web.shared.jdo.MainAreaContent;
import com.thinqq.web.shared.jdo.RelatedAreaContent;

public class ContentServiceImpl extends RemoteServiceServlet implements
		ContentService {

	@Override
	public MainAreaContent getMainAreaContent(String commandName) {
		PersistenceManager pm = PersistentManagerFactoryForAppEngine.get()
				.getPersistenceManager();

		try {
		
			MainAreaContent insertContent = pm.getObjectById(MainAreaContent.class, "comm_industry");
			insertContent.setTitle("Communication");
			ContentPart content = new ContentPart();
			content.setTitle("Communication Industry");
			String paragraph1= "Telecommunication, Mobile communication, Data communication, Media transfer, Voice over Internet Protocol, Trans Continental lines, Fibre Optics, 3G, EDGE, BlueTooth, Wifi .... Just not enough to describe the whole communication industry. Communication Industry stands out in one feature - Specification of Standards and Protocols - boon to the Industry. The well defined standards and specification has lead to the exponential growth of the communication ecosystem. Compatibility of services, Consistency of the services and Granularity become the differentiator. All the differentiators have to effected globally - not in one part of the world - by every service provider.";
			List<Text> paragraphs= new ArrayList<Text>();
			paragraphs.add(new Text(paragraph1));
			content.setParagraphs(paragraphs);
			ContentPart content1 = new ContentPart();
			content1.setTitle("Changes to the Industry");
			paragraph1= "The time to market of any new service in the communication industry directly affects the share of customers using the service. A few hours of delay might lead to loss of \"Early Bird\" customers. ";
			paragraphs= new ArrayList<Text>();
			paragraphs.add(new Text(paragraph1));
			content1.setParagraphs(paragraphs);
			List<ContentPart> contentpart = new ArrayList<ContentPart>();
			contentpart.add(content);
			contentpart.add(content1);
			insertContent.setParagraphs(contentpart);
			insertContent.setContentId("comm_industry");
			pm.makePersistent(insertContent);
		} finally {
			pm.close();
		}
		pm = PersistentManagerFactoryForAppEngine.get().getPersistenceManager();
		MainAreaContent getContent = new MainAreaContent();
		if ("itcmd".equals(commandName)) {
			getContent = pm.getObjectById(MainAreaContent.class, "it_dev1");
		} else if ("proddev".equals(commandName)) {
			getContent = pm.getObjectById(MainAreaContent.class, "comm_industry");
		} else {
			getContent.setTitle("Crap content1 for you");
		}

		return getContent;
	}

	@Override
	public RelatedAreaContent getRelatedAreaContent(String commandName) {
		// TODO Auto-generated method stub
		return null;
	}

}
*/